import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/tjzy/project` + url, ...arg)
export default {
	projectPage(data) {
		return request('/pageList', data, 'post')
	},
	listAllProject(val, flag) {
		return request('/listAll?val=' + val + '&flag=' + flag, '', 'get')
	},
	addProject(data) {
		return request('/add', data, 'post')
	},
	editProject(data) {
		return request('/edit', data, 'post')
	},
	delProject(data) {
		return request('/del', data, 'post')
	},
	//根据项目获取对应主管和小组
	belong(code) {
		return request(`/belong/${code}`, null, 'get')
	}
}
